﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuildPlannerLib
{
    // Class for resources
    public class Resource
    {
        // Int properties for amount
        private int amount;
        public int Amount
        {
            get { return amount; }
            set { amount = value; }
        }

        // Basic constructor
        public Resource()
        {
            Amount = 0;
        }

        // Constructor with parameters for starting amount
        public Resource(int amount)
        {
            Amount = amount;
        }

        // Method for changing amount
        public virtual void Change(int change)
        {
            Amount += change;
        }

        // Method for setting the resource to a specific value
        public void Set(int amount)
        {
            Amount = amount;
        }
    }
}